<?php
include($_SERVER["DOCUMENT_ROOT"] . "/news/model.php");
include($_SERVER["DOCUMENT_ROOT"] . "/news/view.php");
include($_SERVER["DOCUMENT_ROOT"] . "/type/controller.php");
$content_left_column = controller_news_type_on_request();

$news_id = $_GET["id"];
$news_details = model_get_news_details($news_id);

if (model_news_count_click($news_id) == true)
{
	$news_details["click_count"] = $news_details["click_count"] + 1;
}

$content_center_column = view_news_detail($news_details["title"], $news_details["content"], $news_details["publish_time"], $news_details["click_count"]);
$content_right_column = "";

include($_SERVER["DOCUMENT_ROOT"] . "/template/layout.php");
?>
